//package com.example.apiservice.client;
//
//import com.alibaba.csp.sentinel.annotation.SentinelResource;
//import com.example.apiservice.client.fallback.AiClientFallbackFactory;
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.web.bind.annotation.GetMapping;
//
//@FeignClient(value = "ai-service", fallbackFactory = AiClientFallbackFactory.class,
//        url = "http://192.168.233.57:8186")
//public interface AiClient {
//
//    @SentinelResource(
//            value = "AiClient",  // 资源名，用于标识监控和规则配置
//            fallback = "fallbackMethod",  // 降级方法名（处理业务异常）
//            blockHandler = "blockHandlerMethod",  // 限流/熔断处理方法
//            exceptionsToIgnore = {IllegalArgumentException.class}  // 忽略的异常类型
//    )
//    @GetMapping("/ai")
//    void AiTest(Object obj);
//}
